project(PagePreviewPlugin)

find_package(KDE4)
find_package(KDevPlatform 1.0.0 REQUIRED)

INCLUDE_DIRECTORIES(${KDE4_INCLUDES} ${KDEVPLATFORM_INCLUDE_DIR} ${QT_QTCORE_INCLUDE_DIR} ${QT_QTWEBKIT_INCLUDE_DIR})

kde4_add_plugin(PagePreviewPlugin PagePreviewPlugin.cpp PagePreviewWebView.cpp)
target_link_libraries(PagePreviewPlugin ${KDE4_KDECORE_LIBRARY} ${KDEVPLATFORM_INTERFACES_LIBRARIES} ${KDETEXTEDITOR_EXPORT_LIBRARY} ${QT_QTWEBKIT_LIBRARY})

install(TARGETS PagePreviewPlugin DESTINATION ${PLUGIN_INSTALL_DIR})

install(FILES Web_Page_Preview.desktop DESTINATION ${SERVICES_INSTALL_DIR})
